package com.ccz.demo.design.combination;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Leaf extends Component{

    private String name;

    @Override
    public void operation(String preStr) {
        // 具体业务
        System.out.println(preStr + "-" + name);
    }
}
